﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo4;

public  class Animal
{
    public string Name { get; set; }

    public void Run()
    {
        Console.WriteLine($"{Name}会跑");
    }
}



public class Dog : Animal
{
    public void Eeat()
    {
        Console.WriteLine($"{Name}还会吃东西");
    }
}
